package org.jeecg.modules.erp.sale.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 订单明细表
 * @Author: jeecg-boot
 * @Date:   2025-08-13
 * @Version: V1.0
 */
@Data
@TableName("erp_sale_order_detail")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="订单明细表")
public class ErpSaleOrderDetail implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**订单表*/
	@Excel(name = "订单表", width = 15)
    @Schema(description = "订单表")
    private Integer saleOrderId;
	/**物料*/
	@Excel(name = "物料", width = 15)
    @Schema(description = "物料")
    private Integer materialId;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @Schema(description = "数量")
    private BigDecimal qty;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @Schema(description = "金额")
    private BigDecimal amount;
	/**宽/长度*/
	@Excel(name = "宽/长度", width = 15)
    @Schema(description = "宽/长度")
    private BigDecimal attribute1;
	/**高度*/
	@Excel(name = "高度", width = 15)
    @Schema(description = "高度")
    private BigDecimal attribute2;
	/**深度*/
	@Excel(name = "深度", width = 15)
    @Schema(description = "深度")
    private BigDecimal attribute3;
	/**颜色*/
	@Excel(name = "颜色", width = 15)
    @Schema(description = "颜色")
    private String attribute4;
	/**型号说明*/
	@Excel(name = "型号说明", width = 15)
    @Schema(description = "型号说明")
    private String attribute5;
	/**物料备注*/
	@Excel(name = "物料备注", width = 15)
    @Schema(description = "物料备注")
    private String attribute6;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @Schema(description = "备注")
    private String remark;
	/**需求日期*/
	@Excel(name = "需求日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "需求日期")
    private Date requireDate;
}
